Chrome Library Set of 3D Behaviors for Shockwave 3D
Table of Contents
Merging the Car Body and the Wheels
In my example, I have two separate W3D files. The main one contains the body of a car. The second one contains a set of four wheels (4 instances of the same wheel). You will merge the two W3D files so that the wheels load into the main scene and display under the car body. Their relative position has already been set in 3DS Max. You have two separate W3D files so that you can change the wheels of the car at runtime. You can create other W3D files with other kinds of wheels, too. To merge the car and the wheels, use the Load models into the scene behavior.
Figure 12. The Load models into the scene behavior
-
Drag and drop the Load Models into the scene behavior onto the 3D scene. The parameter dialog box in Figure 13 appears.
Figure 13. The parameter dialog box for the Load models into the scene behavior
- Select the W3D containing the wheels (in my case,
alloy_wheel_16_inch_elegance). I can also specify the scale of the models (1.0 by default). This behavior loads all the models present in the specified W3D file, duplicates them in the target W3D scene (the sprite I dropped the behavior onto), and scales them to whatever size I want them to appear. - Press OK.
-
Press Play in the Director toolbar or press Enter/Return. The movie starts. In the score, the player head holds until the wheels are loaded. When done, they appear in the scene and the player head keeps going until the end of the sprite life span.
Figure 14. The wheels loaded using the Load models into the scene behavior